
<?php echo form_open('?admin/manual/cetak_kartu_ujian_adm'); ?>

<label for="kelas">Kelas : </label>
<select name="kelas" id="kelas">
  <option value="" selected="selected">--- Pilih ---</option>
<?php
	foreach($kelas as $daftar_kelas){
?>
	<option value="<?php echo $daftar_kelas->kode_kelas; ?>"><?php echo $daftar_kelas->nama_kelas; ?></option>
<?php
	}
?>
</select>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 

<label for="tahun_ajaran">Tahun Ajaran : </label>
<select name="tahun_ajaran" id="tahun_ajaran">
	<option value="" selected="selected">--- Pilih ---</option>
<?php
	foreach($tahun_ajaran as $daftar_tahun){
?>
	<option value="<?php echo $daftar_tahun->id_tahun_ajaran; ?>"><?php echo $daftar_tahun->tahun_ajaran; ?></option>
<?php
	}
?>

</select>	
&nbsp;&nbsp;
<label for="semester">Semester : </label>
<select name="semester" id="semester">
	<option value="" selected="selected">--- Pilih ---</option>
	<option value="1">Ganjil</option>
    <option value="2">Genap</option>
</select>    

&nbsp;&nbsp;
<input type="submit" name="tbl_cari" id="tbl_cari" value="Cari" />

<?php echo form_close(); ?>

<br />

<!-- Pencarian Berdasarkan nim,nama,email -->

<?php echo form_open('?admin/manual/cetak_kartu_ujian_adm'); ?>

<label for="pilihan">Filter Berdasarkan : </label>
<select name="pilihan" id="pilihan">
	<option value="nim" selected="selected">NIM</option>
    <option value="nama">NAMA</option>
    <option value="email">E-MAIL</option>
</select>	

<input type="text" name="isi" id="isi" />  
<!-- 
<select name="status_mahasiswa" id="status_mahasiswa">
	<option value="" selected="selected">--- Pilih ---</option>
    <option value="transfer">Data Transfer</option>
</select>	
-->
<input type="submit" name="tbl_cari" id="tbl_cari" value="Cari" />

<?php echo form_close(); ?>

<br />
<hr />

<br />
<table class="table">
<tbody>

<tr>
<th rowspan="2">NO</th>
<th rowspan="2">NIM</th>
<th rowspan="2">Nama</th>
<th rowspan="2">TAHUN AJARAN</th>
<th rowspan="2">KELAS</th>
<th rowspan="2">SEMESTER</th>
<th colspan="4" rowspan="2"></th>
</tr>

<tr></tr>

<?php
$i = 1;

foreach($pgl as $baris){

?>
<tr>
<td>
<?php echo $i++."."; ?>
</td>
<td>
<?php echo $baris->nim; ?>
</td>
<td class="tdGrid">
<?php echo $baris->nama; ?>
</td>
<td class="tdGrid">
<?php echo $baris->tahun_ajaran; ?>
</td>
<td class="tdGrid">
<?php 
	if($cek_tampil_transfer == "transfer"){
		echo "-";
	}else{
		echo $baris->nama_kelas;
	}
?>
</td>
<td class="tdGrid">
<?php echo $baris->semester; ?>
</td>

<td>
<?php if($cek_tampil_transfer == "transfer"){ ?>

		<a onclick="print_doc('<?php echo $base_url; ?>hasil_study_transfer/<?php echo $baris->nim."/".$baris->id_tahun_ajaran."/".$baris->id_semester; ?>')" ><img src="<?php echo $TemplateEngine; ?>css/images/print_doc_icon.png"></a>
	    
	<?php }else{ ?>

	<a onclick="print_doc('<?php echo $base_url; ?>report_cetak_kartu_ujian/<?php echo $baris->nim."/".$baris->kode_kelas."/".$baris->id_tahun_ajaran."/".$baris->id_semester; ?>')" ><img src="<?php echo $TemplateEngine; ?>css/images/print_doc_icon.png"></a>

<?php } ?>    
</td>

</tr>
<?php
}
?>

</tbody></table>

<script type="text/javascript">

function print_doc(alamat){
	window.open(alamat,'Akademi Perikanan Yogyakarta',"width=750,height=650");
}

</script>

